From 54953e5da43c7fe8c8292d01cc27b9b2b1fb522e Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 23 Sep 2002 21:15:18 +0000 Subject: [PATCH] Be stricter about signed/unsigned comparisons and conversions. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@99 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mkshort.c | 2 +- gpsbabel/psp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 4fde0e11d..8b29731d3 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -7,7 +7,7 @@ static const char vowels[] = "aeiouAEIOU"; #define DEFAULT_TARGET_LEN 8 -static int target_len = DEFAULT_TARGET_LEN; +static unsigned int target_len = DEFAULT_TARGET_LEN; #define DEFAULT_BADCHARS "\"$.,'!-" static const char *badchars = DEFAULT_BADCHARS; diff --git a/gpsbabel/psp.c b/gpsbabel/psp.c index 4c59e66fc..b616f7344 100644 --- a/gpsbabel/psp.c +++ b/gpsbabel/psp.c @@ -211,7 +211,7 @@ psp_wr_deinit(void) static void psp_read(void) { - unsigned char buff[MAXPSPSTRINGSIZE + 1]; + char buff[MAXPSPSTRINGSIZE + 1]; double radians; waypoint *wpt_tmp; int stringsize; @@ -326,7 +326,7 @@ static void psp_waypt_pr(const waypoint *wpt) { double lon, lat; - unsigned char tbuf[64]; + char tbuf[64]; char c; int i; char *shortname; -- 2.30.2